<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
  </head>

  <body>
    <div id="app"></div>
    <script>
      //   function fn() {
      //     console.log(arguments)
      //   }
      //   fn(1, 2, 3, 4)
      //   let fn2 = () => {
      //     console.log(arguments)
      //   }
      //   fn2(1, 2, 3, 4)
      window.num = 1
      function fn() {
        console.log(this.num)
      }
      let fn1 = () => {
        console.log(this.num)
      }
      //   fn()
      //   fn1()
      let obj = {
        num: 2,
      }
      fn.call(obj)
      fn1.call(obj)
    </script>
  </body>
</html>
